<template>
    <div class="list">
        <Item v-for="item,index in todoList" :key="item.id" :item='item'/>
    </div>
</template>

<script lang="ts" setup>
import { toRefs } from 'vue'
import Item from './Item.vue'
interface item {
    id: string,
    title: string,
    iscomplete: boolean,
}
interface todos {
    todoList: Array<item>
}
const props = defineProps<todos>();
let { todoList } = toRefs(props)
</script>

<style scoped>

</style>